<%-- 
    Document   : Language
    Created on : Dec 20, 2011, 11:24:22 AM
Author     : ubuntu4ldl
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:subview id="languages">
    <h:panelGroup id="header" layout="block" style="background-color:#bbeeff; width:80%; height:147px; margin-left:auto; margin-right:auto;">

        <h:panelGroup id="logo" layout="block" style="float:left">
            <h:graphicImage id="cross" value="/img/lang/croce.png"/>
        </h:panelGroup>
        
        <h:panelGroup id="title" layout="block" style="color:#FFFFFF; float:left; font-size:40px; font-weight:bolder; height:150px;">
            <h:outputText value="Monitoring"/><BR>
            <h:outputText value="Cataloging"/><BR>
            <h:outputText value="Reporting"/><BR>
        </h:panelGroup>
        
        <h:panelGroup id="language" layout="block" style="color:#FFFFFF; float:right; font-size:40px; font-weight:bolder; height:130px; margin-left:50px; margin-right:50px; margin-top:10px; ">
            <h:form>
                <h:commandLink action="#{languagesBean.changeLanguage}" immediate="true">
                    <f:param name="locale" value="it"/>
                    <h:graphicImage url="/img/lang/flag_it.jpg" alt="Italiano" title="Italian" width="50" height="50" style="margin-right:10px"/>
                </h:commandLink>
                <h:commandLink action="#{languagesBean.changeLanguage}" immediate="true">
                    <f:param name="locale" value="en"/>
                    <h:graphicImage url="/img/lang/flag_en.jpg" alt="English" title="English" width="75" height="50"/>
                </h:commandLink>
            </h:form>
            <h:form>
                <h:commandLink action="#{user.doLogout()}" style="color:blue; font-size:20px;" rendered="#{user.logged}">
                    <h:outputText value="LogOut" />
                </h:commandLink>
                <h:outputText value="   "/>
            </h:form>
        </h:panelGroup>
        
            <h:panelGroup id="navigation" layout="block" style="background-color:#00FFFF;  float:right">

        </h:panelGroup>

    </h:panelGroup>
</f:subview>
